

def Label2Sent(tensor, l2sDict, netType, vocabType):
    sent = []
    sentLen = tensor.shape[0]
    for i in range(sentLen):
        sinTensor = tensor[i]
        sinSent = ''
        if netType == 'ed':
            pass
        if netType == 'ctc':
            pass
        if netType == 'conv':
            sinSent = ConvTrans(sinTensor, l2sDict)
        sent.append(sinSent)
    return sent

def ConvTrans(tensor, l2sDict):
    sent = l2sDict[tensor.item()]
    return sent